<template>
	<view class="page" v-if="loadding">
		<view class="head">
			<image @click="gotoReturn()" src="../../../../static/jiaotou1.png"></image>
			<view>{{listData.article_title}}</view>
		</view>
		<view class="centent" v-html="listData.article_content"></view>
		
		
		<view class="null d-c-c p30" v-if="listData.length == 0">
			<text class="iconfont icon-wushuju"></text>
			<text class="cont">亲，暂无相关记录哦</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				listData:[],
				loadding:false
			}
		},
		onLoad(e) {
			if(e.select == 1){
				this.id = e.id
			}
		},
		onShow() {
			this.getInfo();
		},
		methods: {
			gotoReturn(){
				uni.navigateTo({
					url:'/pagesUser/information/service-info/service-info'
				})
			},
			/* 获取客服详情 */
			getInfo() {
				let self = this;
				uni.showLoading({
					title: '加载中'
				});
				self._post('plus.article.Article/detail', {
						article_id: self.id
					},
					function(res) {
						self.listData = res.data.detail;
						self.loadding = true;
						uni.hideLoading();
					});
			},
		}
	}
</script>

<style>

	.page{
		width: 100%;
		margin-top: 80rpx;
	}
	.head{
		display: flex;
		align-items: center;
		width: 300px;
		font-size: 32rpx;
		padding: 20rpx;
		font-weight: 800;
	}
	.head image{
		width: 48rpx;
		height: 58rpx;
		margin-right: 26rpx;
	}
	.centent{
		margin-top: 20rpx;
		padding: 10rpx 30rpx;
		font-size: 28rpx;
	}
</style>
